package week01;

public class TicketMaker {
    public static TicketMaker currentTicket=new TicketMaker();
    private static int num=1000;
    public static TicketMaker getNextTicketNumber(){
        num=num+1;
        System.out.println(num);
        return currentTicket;
    }
    private TicketMaker(){}
}
